<script setup>
    import { useRouter } from 'vue-router';

    let router = useRouter();

    let logout = ()=>{
        router.push("/login");
    }

</script>

<template>
  <div>
     登录成功!!!
     <br>
     <button @click="logout">退出登录</button>
  </div>
</template>

<style scoped>

</style>